{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"renderTabBar\"],\n  _excluded2 = [\"label\", \"key\"];\n// zombieJ: To compatible with `renderTabBar` usage.\nimport * as React from 'react';\nimport TabNavList from '.';\nimport TabContext from \"../TabContext\";\nimport TabPane from \"../TabPanelList/TabPane\";\n// We have to create a TabNavList components.\nexport default function TabNavListWrapper(_ref) {\n  var renderTabBar = _ref.renderTabBar,\n    restProps = _objectWithoutProperties(_ref, _excluded);\n  var _React$useContext = React.useContext(TabContext),\n    tabs = _React$useContext.tabs;\n  if (renderTabBar) {\n    var tabNavBarProps = _objectSpread(_objectSpread({}, restProps), {}, {\n      // Legacy support. We do not use this actually\n      panes: tabs.map(function (_ref2) {\n        var label = _ref2.label,\n          key = _ref2.key,\n          restTabProps = _objectWithoutProperties(_ref2, _excluded2);\n        return /*#__PURE__*/React.createElement(TabPane, _extends({\n          tab: label,\n          key: key,\n          tabKey: key\n        }, restTabProps));\n      })\n    });\n    return renderTabBar(tabNavBarProps, TabNavList);\n  }\n  return /*#__PURE__*/React.createElement(TabNavList, restProps);\n}","map":{"version":3,"names":["_extends","_objectSpread","_objectWithoutProperties","_excluded","_excluded2","React","TabNavList","TabContext","TabPane","TabNavListWrapper","_ref","renderTabBar","restProps","_React$useContext","useContext","tabs","tabNavBarProps","panes","map","_ref2","label","key","restTabProps","createElement","tab","tabKey"],"sources":["/data/messenger.client/node_modules/rc-tabs/es/TabNavList/Wrapper.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"renderTabBar\"],\n    _excluded2 = [\"label\", \"key\"];\n// zombieJ: To compatible with `renderTabBar` usage.\nimport * as React from 'react';\nimport TabNavList from '.';\nimport TabContext from \"../TabContext\";\nimport TabPane from \"../TabPanelList/TabPane\";\n// We have to create a TabNavList components.\nexport default function TabNavListWrapper(_ref) {\n  var renderTabBar = _ref.renderTabBar,\n      restProps = _objectWithoutProperties(_ref, _excluded);\n\n  var _React$useContext = React.useContext(TabContext),\n      tabs = _React$useContext.tabs;\n\n  if (renderTabBar) {\n    var tabNavBarProps = _objectSpread(_objectSpread({}, restProps), {}, {\n      // Legacy support. We do not use this actually\n      panes: tabs.map(function (_ref2) {\n        var label = _ref2.label,\n            key = _ref2.key,\n            restTabProps = _objectWithoutProperties(_ref2, _excluded2);\n\n        return /*#__PURE__*/React.createElement(TabPane, _extends({\n          tab: label,\n          key: key,\n          tabKey: key\n        }, restTabProps));\n      })\n    });\n\n    return renderTabBar(tabNavBarProps, TabNavList);\n  }\n\n  return /*#__PURE__*/React.createElement(TabNavList, restProps);\n}"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,aAAa,MAAM,0CAA0C;AACpE,OAAOC,wBAAwB,MAAM,oDAAoD;AACzF,IAAIC,SAAS,GAAG,CAAC,cAAc,CAAC;EAC5BC,UAAU,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC;AACjC;AACA,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,GAAG;AAC1B,OAAOC,UAAU,MAAM,eAAe;AACtC,OAAOC,OAAO,MAAM,yBAAyB;AAC7C;AACA,eAAe,SAASC,iBAAiB,CAACC,IAAI,EAAE;EAC9C,IAAIC,YAAY,GAAGD,IAAI,CAACC,YAAY;IAChCC,SAAS,GAAGV,wBAAwB,CAACQ,IAAI,EAAEP,SAAS,CAAC;EAEzD,IAAIU,iBAAiB,GAAGR,KAAK,CAACS,UAAU,CAACP,UAAU,CAAC;IAChDQ,IAAI,GAAGF,iBAAiB,CAACE,IAAI;EAEjC,IAAIJ,YAAY,EAAE;IAChB,IA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